<%@page import="com.mmy.domain.hotel.THotelBase"%>
<%@page import="com.mmy.domain.hotel.VHotelBase"%>
<%@page import="com.mmy.domain.hotel.THotelPlan"%>
<%@page import="com.mmy.domain.hotel.VHotelPlan"%>
<%@page import="com.mmy.domain.hotel.THotelRoom"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<title>餐馆计划信息</title>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<h2>酒店计划信息</h2>			
		</div>
	</header>
	<section class="container">
	<div class="information" >
				<form action="saveupdatehotelplan" method="post" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>修改酒店计划信息
						</h4>
			<div class="input-container">
			<table class="info-table" >
				<tr>
					<th><label for="PlanService">服务标准</label></th>
					<td colspan="3">
					<input type="hidden"  name="PlanID" value="${newVHotelPlan.getPlanID() }" readonly="readonly"/>
					
						<input type="text" id="PlanService" name="Service" value="${newVHotelPlan.getService() }" required/><span class="mustWrite">*</span>
					</td>
					</tr>
					<tr>
					<th><label for="PlanHotelName">酒店名称</label></th>
					<td>
						<select class="input-select-vlign" id="PlanHotelName" name="HotelID" required>
							<c:forEach var="lstHotelBase" items="${newLstHotelBase}">
								<option value="${lstHotelBase.getHotelID()}">${lstHotelBase.getHotelName()}</option>
							</c:forEach>	
						</select>
					</td>
					<th><label for="PlanHotelRoom">房间名称</label></th>
					<td>
						<select class="input-select-vlign" id="PlanRoomName" name="RoomID" required>
							<c:forEach var="lstHotelRoom" items="${newLstHotelRoom}">
								<option value="${lstHotelRoom.getRoomID()}">${lstHotelRoom.getRoomName()}</option>
							</c:forEach>	
						</select>
					</td>
				</tr>
				<tr>
					<th><label for="PlanStart">开始日期</label></th>
					<td>
						<input type="datetime-local" id="PlanStart" name="startTime" value="${newVHotelPlan.getStartDate() }" required/><span class="mustWrite">*</span>
					</td>
					<th><label for="PlanEnd">结束日期</label></th>
					<td>
						<input type="datetime-local" id="PlanEnd" name="endTime" value="${newVHotelPlan.getEndDate() }"  required/><span class="mustWrite">*</span>
					</td>
				</tr>
				<tr>
					<th><label for="PlanFloor">底价</label></th>
					<td>
						<input type="number" id="PlanFloor" name="Floor" step="0.01" value="${newVHotelPlan.getFloor() }"  required/><span class="mustWrite">*</span>
					</td>
					<th><label for="PlanPeer">同业价</label></th>
					<td>
						<input type="number" id="PlanPeer" name="Peer" step="0.01" value="${newVHotelPlan.getPeer() }" required/><span class="mustWrite">*</span>
					</td>
				</tr>
				<tr>
					<th><label for="PlanPrice">对外报价</label></th>
					<td>
						<input type="number" id="PlanPrice" name="Price" step="0.01" value="${newVHotelPlan.getPrice() }" required/><span class="mustWrite">*</span>
					</td>
					<th><label for="PlanNumber">数量</label></th>
					<td>
						<input type="number" id="PlanNumber" name="Number" value="${newVHotelPlan.getNumber() }"  required/><span class="mustWrite">*</span>
					</td>
				</tr>
				
				<tr>
					<th><label for="PlanExplain">订房说明</label></th>
					<td colspan="3">
						<textarea name="Explain" id="PlanExplain" >${newVHotelPlan.getService() }</textarea>
					</td>
				</tr>
				<tr>
					<th><label for="PlanMemo">备注</label></th>
					<td colspan="3">
						<textarea name="Memo" id="PlanMemo">${newVHotelPlan.getMemo() }</textarea>
					</td>
				</tr>	
					
				</table>
				<center>
				<input type="submit" class="btn" value="保存" />
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
				</center> 
			</div>
				</form>
		</div>
			</section>
			</article>
			</main>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
	<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>
</html>